namespace StaffingSystem.EF
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class Management : DbContext
    {
        public Management()
            : base("name=Management")
        {
        }

        public virtual DbSet<Attendance> Attendance { get; set; }
        public virtual DbSet<AttendanceRelation> AttendanceRelation { get; set; }
        public virtual DbSet<Department> Department { get; set; }
        public virtual DbSet<DepartmentPosition> DepartmentPosition { get; set; }
        public virtual DbSet<EmpandTransfer> EmpandTransfer { get; set; }
        public virtual DbSet<Employees> Employees { get; set; }
        public virtual DbSet<EmployeesInfor> EmployeesInfor { get; set; }
        public virtual DbSet<IEmployees> IEmployees { get; set; }
        public virtual DbSet<InterView> InterView { get; set; }
        public virtual DbSet<LeaveList> LeaveList { get; set; }
        public virtual DbSet<LeaveType> LeaveType { get; set; }
        public virtual DbSet<Loginon> Loginon { get; set; }
        public virtual DbSet<PersonLeave> PersonLeave { get; set; }
        public virtual DbSet<personnelinfor> personnelinfor { get; set; }
        public virtual DbSet<Postion> Postion { get; set; }
        public virtual DbSet<Tasks> Tasks { get; set; }
        public virtual DbSet<TaskType> TaskType { get; set; }
        public virtual DbSet<Transfer> Transfer { get; set; }
        public virtual DbSet<TrialInfor> TrialInfor { get; set; }
        public virtual DbSet<Ttasks> Ttasks { get; set; }
        public virtual DbSet<checks> checks { get; set; }
        public virtual DbSet<index> index { get; set; }
        public virtual DbSet<Information> Information { get; set; }
        public virtual DbSet<Official> Official { get; set; }
        public virtual DbSet<Official_USE> Official_USE { get; set; }
        public virtual DbSet<Postchange> Postchange { get; set; }
        public virtual DbSet<View_LeaveList> View_LeaveList { get; set; }
        public virtual DbSet<View_Tasks> View_Tasks { get; set; }
        public virtual DbSet<Viewone> Viewone { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<LeaveType>()
                .Property(e => e.TypeName)
                .IsFixedLength();

            modelBuilder.Entity<View_LeaveList>()
                .Property(e => e.TypeName)
                .IsFixedLength();
        }
    }
}
